package com.niit.session5.oprator;

public class StringAppend {
	public static void main(String[] args) {
		System.out.println(2.5 + "年");
		System.out.println("a" + true);
		System.out.println('你' + "是故意的还是不小心" + true);
		int age = 18;
		System.out.println("我今年" + age + "岁！");
		System.out.println("我今年" + "age" + "岁！");
		System.out.println(1 + 2 + "abc" + 2 + 1);
//		整数加上空字符串，会被自动转换成字符串类型
		System.out.println(10+"");

	}

}
